package com.yc;

public class Demo {
    private String name;
    public void hello(){
        System.out.println("hello "+name);
    }

    public String getName() {
        return name;
    }
    public void init(){
        System.out.println("初始化方法 "+name);
    }
    public void destroy(){
        System.out.println("销毁方法 "+name);
    }
    public void setName(String name) {
        this.name = name;
    }
}
